package barrier;

import java.awt.image.BufferedImage;

public class Home extends Barrier {
	public Home() {
		super(392, 728);
		size = 56;
	}

	private static BufferedImage[] images;
	static {
		images = new BufferedImage[2];
		images[0] = loadImage("home.png").getSubimage(0, 0, 56, 56);
		images[1] = loadImage("home.png").getSubimage(56, 0, 56, 56);
	}

	public BufferedImage getImage() {
		if (isLive()) {
			return images[0];
		} else {
			return images[1];
		}
	}
}
